#include "frame.h"

MyFrame::MyFrame(): wxFrame(NULL, wxID_ANY, _T("FRAME"), wxDefaultPosition, wxSize(444,444)){
	wxBoxSizer *dlgSizer = new wxBoxSizer(wxVERTICAL);

	wxBoxSizer *textSizer = new wxBoxSizer(wxHORIZONTAL);
	_pInfoText = new wxStaticText(this, -1, _T("This is a Static Text Control"), wxDefaultPosition, wxDefaultSize, wxALIGN_CENTER);
	textSizer->Add(_pInfoText, 1, 0);

	_pOkBtn = new wxButton(this, wxID_OK, _T("OK"), wxPoint(-1, -1));
	_pCancelBtn = new wxButton(this, wxID_CANCEL);
	wxBoxSizer *btnSizer = new wxBoxSizer(wxHORIZONTAL);
	btnSizer->Add(_pOkBtn, 1, wxLEFT|wxRIGHT, 20);
	btnSizer->Add(_pCancelBtn, 1, wxLEFT|wxRIGHT, 20);

	dlgSizer->Add(textSizer, 0, wxGROW);
	dlgSizer->Add(btnSizer, 0, wxGROW);

	SetSizer(dlgSizer);
	SetAutoLayout(TRUE);
	Layout();
}
